package org.example;


import org.example.Problem.*;

import javax.xml.bind.SchemaOutputResolver;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        MyPriorityQueue myPriorityQueue = new MyPriorityQueue(100);
        myPriorityQueue.add(100);
        myPriorityQueue.add(10);
        myPriorityQueue.add(9);
        myPriorityQueue.add(29);
        //myPriorityQueue.print();
        while (myPriorityQueue.size()>0){
            System.out.println(myPriorityQueue.poll());
            //myPriorityQueue.print();
        }
    }
}


